﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace HyCommonTableTool
{
	internal class FilterGroup : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			return elem != null && elem is Group && GridExtendedData.GroupHasExtendedData(elem as Group);
		}

		public bool AllowReference(Reference reference, XYZ position)
		{
			throw new NotImplementedException();
		}
	}
}
